package com.example.plugin.event;

import android.os.Bundle;
import android.widget.Toast;
import com.example.plugin.R;
import com.qihoo360.replugin.loader.a.PluginActivity;

import static com.example.plugin.APP.pansy;

/**
 * 用户点击设置时调用，继承PluginActivity是为了解决在低版本手机黑屏的问题
 */
public class PluginSetActivity extends PluginActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        try{
            setContentView(R.layout.activity_main);
        }catch (Exception e){
            e.printStackTrace();
        }
        if(pansy==null){
            Toast.makeText(this,"请先启用插件",Toast.LENGTH_LONG).show();
            finish();
        }
    }
}
